import { lazy } from 'react';
// import { Redirect } from 'react-router-dom'
// 引入路由视图组件
const Login = lazy(() => import(/* webpackChunkName: 'Login'*/ '@/views/Login'));
const TableDemo = lazy(() => import(/* webpackChunkName: 'tableDemo'*/ '@/views/TableDemo'));

// 路由配置表  数组
const routes = [
  {
    path: '/Login',
    component: Login,
  },
  {
    path: '/TableDemo',
    component: TableDemo,
    // children: [
    //   {
    //     path: '/index/movie',
    //     component: Movie
    //   },
    //   {
    //     path: '/index/place',
    //     component: Place
    //   },
    //   {
    //     path: '/index/my',
    //     component: My
    //   }
    // ]
  }
];
// 抛出路由配置表
export default routes;